package com.liuchuanzheng.lcz_wanandroid.module.history.repository

import com.liuchuanzheng.lcz_wanandroid.module.home.bean.Article
import com.liuchuanzheng.lcz_wanandroid.room.RoomHelper

class HistoryRepository {

    suspend fun getReadHistory() = RoomHelper.queryAllReadHistory()
    suspend fun deleteHistory(article: Article) = RoomHelper.deleteReadHistory(article)
    suspend fun addReadHistory(article: Article) = RoomHelper.addReadHistory(article)

}